package storage

import (
	"gitee.com/mkwchecking/sr-core/storage/cache"
	"gitee.com/mkwchecking/sr-core/storage/database"
)

type IStorage interface {
	// default use database.DataSet()
	DataSet() database.IDataSet
	SetDataSet(dataSet database.IDataSet) error

	// default use cache.CacheSet()
	CacheSet() cache.ICacheSet
	SetCache(cache cache.ICacheSet) error
}
